package com.topdt.jbpm.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 建立日期 : 2013-6-21 上午09:15:10<br>
 * 作者 : shiyan<br>
 * 模块 : <br>
 * 描述 : <br>
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */
@Entity
@Table(name = "wf_flow")
public class Flow extends JbpmModel{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Column(length = 32)
	private String flowId;
	
	private String flowName;
	private String jbpmFlowId;
	private String jbpmFlowKey;
	private Date creatTime;

	private String creater;

	private String isInherent;
	@Transient
	private List<FlowDetail> flowDetails;
	
	
	public String getIsInherent() {
		return isInherent;
	}

	public void setIsInherent(String isInherent) {
		this.isInherent = isInherent;
	}

	public String getFlowId() {
		return flowId;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	public String getFlowName() {
		return flowName;
	}

	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}

	public String getJbpmFlowId() {
		return jbpmFlowId;
	}

	public void setJbpmFlowId(String jbpmFlowId) {
		this.jbpmFlowId = jbpmFlowId;
	}

	public String getJbpmFlowKey() {
		return jbpmFlowKey;
	}

	public void setJbpmFlowKey(String jbpmFlowKey) {
		this.jbpmFlowKey = jbpmFlowKey;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public List<FlowDetail> getFlowDetails() {
		return flowDetails;
	}

	public void setFlowDetails(List<FlowDetail> flowDetails) {
		this.flowDetails = flowDetails;
	}

}



